package com.ruoyi.hl.service.impl;

import com.ruoyi.hl.mapper.ShouHuanMapper;
import com.ruoyi.hl.reqbean.AddBanZuZhangBean;
import com.ruoyi.hl.reqbean.SHouHuanMyOutBloodBean;
import com.ruoyi.hl.reqbean.ShouHuanAddChuanYun;
import com.ruoyi.hl.reqbean.ShouHuanUserBean;
import com.ruoyi.hl.service.ShouHuanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 参数配置 服务层实现
 *
 * @author ruoyi
 */
@Service
public class ShouHuanServiceImpl implements ShouHuanService {

    @Autowired
    private ShouHuanMapper shouHuanMapper;

    @Override
    public int addUserInfo(ShouHuanUserBean shouHuanUserBean) {
        return shouHuanMapper.addUserInfo(shouHuanUserBean);
    }

    /**
     * 批量删除用户信息
     */
    @Override
    @Transactional
    public int deleteUserInfo(Long[] userIds) {
        return shouHuanMapper.deleteUserInfo(userIds);
    }

    @Override
    public int updateUserInfo(ShouHuanUserBean shouHuanUserBean) {
        return shouHuanMapper.updateUserInfo(shouHuanUserBean);
    }

    @Override
    public List<ShouHuanUserBean> selectUserInfo(ShouHuanUserBean shouHuanUserBean) {
        return shouHuanMapper.selectUserInfo(shouHuanUserBean);
    }

    @Override
    public List<String> selectEquipmentByName(String userName) {
        return shouHuanMapper.selectEquipmentByName(userName);
    }

    @Override
    public int setBloodDataFromOut(SHouHuanMyOutBloodBean myOutBloodBean) {
        return shouHuanMapper.setBloodDataFromOut(myOutBloodBean);
    }

    @Override
    public int setHeartDataFromOut(SHouHuanMyOutBloodBean myOutBloodBean) {
        return shouHuanMapper.setHeartDataFromOut(myOutBloodBean);
    }

    @Override
    public int setTemperatureDataFromOut(SHouHuanMyOutBloodBean myOutBloodBean) {
        return shouHuanMapper.setTemperatureDataFromOut(myOutBloodBean);
    }

    @Override
    public List<ShouHuanAddChuanYun> selectBloodDetail() {
        return shouHuanMapper.selectBloodDetail();
    }

    @Override
    public List<ShouHuanAddChuanYun> selectHeartDetail() {
        return shouHuanMapper.selectHeartDetail();
    }

    @Override
    public List<ShouHuanAddChuanYun> selectTemperatureDetail() {
        return shouHuanMapper.selectTemperatureDetail();
    }

    @Override
    public int addBanZuInfo(AddBanZuZhangBean bean) {
        return shouHuanMapper.addBanZuInfo(bean);
    }

    @Override
    public int updateBanZuInfo(AddBanZuZhangBean bean) {
        return shouHuanMapper.updateBanZuInfo(bean);
    }

    @Override
    public int deleteBanZuInfo(String id) {
        return shouHuanMapper.deleteBanZuInfo(id);
    }

    @Override
    public List<AddBanZuZhangBean> selectBanZuInfo(AddBanZuZhangBean bean) {
        return shouHuanMapper.selectBanZuInfo(bean);
    }

    @Override
    public AddBanZuZhangBean selectBanZuDetail(String id) {
        return shouHuanMapper.selectBanZuDetail(id);
    }


}
